package com.cpp.pojo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 * @TableName question_error
 */
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="answer_record")
@Data
@Builder
public class AnswerRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 题目id
     */
    private Long questionId;
    /**
     * 练习id
     */
    private Long practiceId;


    /**
     * 考试用户id
     */
    private Long userId;
    /**
     *科目id
     */
    private Long subjectId;
    /**
     * 所属课程id
     */
    private Long courseId;
    
    /**
     * 考试id,为空则为课堂练习
     */
    private Long examId;

    /**
     * 0实训练习1开放题/2简答题/3单选题/4多选题
     */
    private Integer type;

    /**
     * 题目内容（含题干、选项等）
     */
    private String content;

    /**
     * 难度：1`简单`/2`中等`/3`困难`
     */
    private Integer difficulty;

    /**
     * 关联知识点标签ids
     */
    private String knowledgeIds;

    /**
     * 正确答案
     */
    private String answer;
    /**
     * 用户答案
     */
    private String userAnswer;

    /**
     * 答案解析
     */
    private String analysis;
    /**
     * 状态：0错误1正确
     */
    private Integer status;


    /**
     * 分数
     */
    private Integer score;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}